package com.kl.modular.system.service.constant;

/**
 * 系统常量
 * @author xrp_zjb
 * @date 2015/5/26 22:11
 * 
 */
public class SystemConStant {

	/************************************** SESSION KEY ******************************************/

	public final static String SESSION_USER_KEY = "SESSION_USER_KEY_NEW";// 当前的登录用户会话

	/************************************** 程序响应状态 ******************************************/

	public final static String RESPONSE_STATUS_SUCCESS = "SUCCESS";// 成功
	public final static String RESPONSE_STATUS_FAILED = "FAILED";// 失败
	public final static String RESPONSE_STATUS_ERROR = "ERROR";// 系统错误/运行时异常
	public final static String RESPONSE_MSG_ERROR = "系统繁忙";

	/************************************** 数据有效性 ******************************************/

	public final static Boolean DATA_ENABLEDS = true;// 有效(不禁用NO)
	public final static Boolean DATA_DISENABLED = false;// 无效(禁用YES)

	/************************************** 权限资源类别  ******************************************/

	public final static String SYSTEM_AUTH_TYPE_MODULAR = "MODULAR";// 系统功能模块
	public final static String SYSTEM_AUTH_TYPE_MENU = "MENU";// 权限菜单
	public final static String SYSTEM_AUTH_TYPE_FUNCTIONS = "FUNCTIONS";// 功能权限

	/************************************** 权限资源状态  ******************************************/

	public final static String SYSTEM_AUTH_STATUS_NORMAL = "NORMAL";// 正常

	/************************************** 用户状态  ******************************************/

	public final static String SYSTEM_ADMIN_STATUS_NORMAL = "normal";// 正常
	public final static String SYSTEM_ADMIN_STATUS_LOCKED = "locked";// 锁定

	public final static String RESPONSE_USER_STATUS_VERIFICATIONERROR = "VERIFICATIONERROR";// 验证码错误
	public final static String RESPONSE_USER_STATUS_DELETE = "DELETE_ERROR"; // 用户被删除
	public final static String RESPONSE_USER_STATUS_DISABLED = "DISABLED"; // 用户被禁用

	/************************************** 角色权限状态 ******************************************/

	public final static String SYSTEM_ROLE_AUTH_NORMAL_STATUS = "normal";// 正常

	/************************************** 用户角色状态  ******************************************/

	public final static String SYSTEM_ADMIN_ROLE_NORMAL_STATUS = "normal";// 正常

}
